#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <GuiListView.au3>
#include <GUIComboBox.au3>
#Include <GuiTreeView.au3>
#include <GUIListBox.au3>
#include <GuiButton.au3>
#Include <GuiMenu.au3>
#include <FunctionForAppBar.au3>

Common_WriteCurrentFunctionNameToTempTXT($sAppBarFunctionName)

Dim $bDebug = False

If Not $bDebug Then

	ApplicationBar1_1_1()
	ApplicationBar1_2_1()
	ApplicationBar1_2_2()
	ApplicationBar1_2_3()
	ApplicationBar1_2_4()
	ApplicationBar1_5_1()
	ApplicationBar1_5_3()
	ApplicationBar1_6_2()
	ApplicationBar1_6_3()
	ApplicationBar1_6_6()
	ApplicationBar1_10_1()
	ApplicationBar1_11_1()
	ApplicationBar1_12_1()
	ApplicationBar1_14_1()
	ApplicationBar1_15_1()
	ApplicationBar1_16_1()
	ApplicationBar1_17_1()
	ApplicationBar1_18_1()
	ApplicationBar1_20_1()
	ApplicationBar1_20_2()
	ApplicationBar1_20_3()
	ApplicationBar1_23_21()
	ApplicationBar1_10_4_32()
EndIf

CloseOpenedExcel($oExcel)
Func ApplicationBar1_1_1()
	Local $TestCaseID = "1.1.1"
	$sCusMsg = 'The image is AB bar'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_2_1()
	Local $TestCaseID = "1.2.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar) 
	Common_SleepTime(2) 
	Send("!v")   ; Open "View" menu.
	Common_SleepTime() 
	Send("a")   ; Hide the AP bar.
	Common_SleepTime(2) 
	Local $bVisible = ControlCommand($hPMHandle, "", $sApplicationBar,"IsVisible", "")
	If $bVisible Then			
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0 
	Else
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	EndIf
EndFunc

Func ApplicationBar1_2_2()
	Local $TestCaseID = "1.2.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Send("!v")   ; Open "View" menu.
	Common_SleepTime(2) 
	Send("a")   ; Hide the AP bar.
	Common_SleepTime(2) 
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $bVisible = ControlCommand($hPMHandle, "", $sApplicationBar,"IsVisible", "")
	If $bVisible Then			
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0 
	Else
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	EndIf
EndFunc

Func ApplicationBar1_2_3()
	Local $TestCaseID = "1.2.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Send("{F7}")
	Common_SleepTime() 
	Local $bVisible = ControlCommand($hPMHandle, "", $sApplicationBar,"IsVisible", "")
	If $bVisible Then			
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0 
	Else
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	EndIf 
EndFunc

Func ApplicationBar1_2_4()
	Local $TestCaseID = "1.2.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Send("{F7}")
	Common_SleepTime(2) 
	Send("{F7}")
	Common_SleepTime() 
	Local $bVisible = ControlCommand($hPMHandle, "", $sApplicationBar,"IsVisible", "")
	If $bVisible Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0 
	EndIf 
EndFunc

Func ApplicationBar1_5_1()
	Local $TestCaseID = "1.5.1"
	$sCusMsg = 'The first icon in AP bar is not PDF writer'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseMove(588, 988)
	Common_SleepTime(1) 
	MouseDown("left")
	Common_SleepTime(1)
	MouseMove(49, 988)
	Common_SleepTime(1)
	MouseUp("left")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_5_2()
	Local $TestCaseID = "1.5.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClickDrag("left",$posAppBar[0]+$nIconWidth*($nIconCount+1),$posAppBar[1]+$posAppBar[3]/2,$posAppBar[0]+$nIconWidth*($nIconCount+1)/2,$posAppBar[1]+$posAppBar[3]/2)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_5_3()
	Local $TestCaseID = "1.5.3"
	$sCusMsg = 'The PDF writer is in the last postion'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Common_SleepTime(2) 
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClickDrag("left",$posAppBar[0]+$nIconWidth*2,$posAppBar[1]+$posAppBar[3]/2,$posAppBar[0]+$nIconWidth*($nIconCount+1),$posAppBar[1]+$posAppBar[3]/2)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_6_2()
	Local $TestCaseID = "1.6.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	CliclPDFWriterOnAPBAr('right')
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_6_3()
	Local $TestCaseID = "1.6.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Send("!f")   ; Open "View" menu.
	Common_SleepTime() 
	Send("l")   ; Hide the AP bar.
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_6_6()
	Local $TestCaseID = "1.6.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime(6) 
    If ProcessExists("outlook.exe")  Then
		ProcessClose("outlook.exe")
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_7_1()
	Local $TestCaseID = "1.7.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime()
	ControlClick($hPMHandle,"",$sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(4)
	Common_AddAnnotation()
	Common_SleepTime(2)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PDFWRITER', 'left')
	Common_SleepTime(4)
   If WinExists($sMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMessageTitle)
		Common_SleepTime(2) 
		ControlClick($sMessageTitle,"",6)
		Common_SleepTime(2)
		ControlSetText($sSaveAsTitle,"",$sFileNameEditBoxInSaveAsDlg,$PerformResultPath&$TestCaseID&".pdf")
		Common_SleepTime(2)
		ControlClick($sSaveAsTitle,"",$sSaveButtonInSaveAsDlg)
		Common_SleepTime(2)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If  $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			;Common_WriteLog("PASS: Please check the pdf  content is not contain annotation with manaul!", $TestCaseID,$sLogName)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_7_2()
	Local $TestCaseID = "1.7.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime()
	ControlClick($hPMHandle,"",$sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(4)
	Common_AddAnnotation()
	Common_SleepTime(2)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PDFWRITER', 'left')
	Common_SleepTime(2)
   If WinExists($sMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMessageTitle)
		Common_SleepTime(2) 
		ControlClick($sMessageTitle,"",7)
		Common_SleepTime(2)
		ControlSetText($sSaveAsTitle,"",$sFileNameEditBoxInSaveAsDlg,$PerformResultPath&$TestCaseID&".pdf")
		Common_SleepTime(2)
		ControlClick($sSaveAsTitle,"",$sSaveButtonInSaveAsDlg)
		Common_SleepTime(2)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If  $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			;Common_WriteLog("PASS: Please check the pdf  content is contain annotation with manaul!", $TestCaseID,$sLogName)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_8_1()
	Local $TestCaseID = "1.8.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	CopySamppleToPMFolder()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime()
	Local $posAppBar = GetAppBarPos($hPMHandle)
	CliclPDFWriterOnAPBAr('right')
	Common_SleepTime(2)
	Send("{down}")
	Sleep(300)
	Send("{down}")
	Sleep(300)
	Send("{enter}")
	Common_SleepTime(12)
	Send($PerformResultPath&$TestCaseID&".pdf")
	Common_SleepTime(4)
	Send('{ENTER}')
	Common_SleepTime(10)
	If FileExists($PerformResultPath&$TestCaseID&".pdf") Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_8_2()
	Local $TestCaseID = "1.8.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	CopySamppleToPMFolder()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hListView, 0)
	Common_SleepTime(4)
	Send("!f")
	Common_SleepTime()
	Send("l")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(8)
	WinActivate($sSaveAsTitle)
	Common_SleepTime(2)
	Send($PerformResultPath&$TestCaseID&".pdf")
	Common_SleepTime(4)
	Send('{ENTER}')
	Common_SleepTime(10)
	If FileExists($PerformResultPath&$TestCaseID&".pdf") Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_9_1()
	Local $TestCaseID = "1.9.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	CliclPDFWriterOnAPBAr('right')
	Common_SleepTime(2) 
	Send("{down}")
	Sleep(300)
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_9_2()
	Local $TestCaseID = "1.9.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	CliclPDFWriterOnAPBAr("right")
	Common_SleepTime()
	Send("{down}")
	Sleep(300)
	Send("{Enter}")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14011)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime()
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Sleep(300)
	Send("{down}")
	Sleep(300)
	Send("{Enter}")
	Common_SleepTime(14)
	ControlSend("Save As","",1152,$sFunctionFolderPath&$TestCaseID)
	Common_SleepTime()
	ControlClick("Save As","","Button2")
	Common_SleepTime(2)
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".PDF", $sFunctionFolderPath &$TestCaseID& "c.PDF")
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
    Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
    EndIf
	Common_Close_PM($hPMHandle) 
	WinActivate("PageManager PDF Writer")
	Send("{Enter}")
EndFunc

Func ApplicationBar1_9_3()
	Local $TestCaseID = "1.9.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14012)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime()
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime(14)
	ControlSend("Save As","",1152,$sFunctionFolderPath&$TestCaseID)
	Common_SleepTime()
	ControlClick("Save As","","Button2")
	Common_SleepTime(2)
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".PDF", $sFunctionFolderPath &$TestCaseID& "c.PDF")
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		;Common_FileWriteLog_1("PASS", $TestCaseID,$sLogName)
    Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
	    ;Common_FileWriteLog_1("____FAIL", $TestCaseID,$sLogName)
    EndIf
	Common_Close_PM($hPMHandle) 
	WinActivate("PageManager PDF Writer")
	Send("{Enter}")
EndFunc

Func ApplicationBar1_9_4()
	Local $TestCaseID = "1.9.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14009)
	Common_SleepTime()
	ControlClick("Print","",1025)
	Common_SleepTime()
	ControlClick("PageManager PDF Writer Document Properties","",1262)
	Common_SleepTime()
	ControlClick("PageManager PDF Writer Document Properties","",1)
	Common_SleepTime()
	ControlClick("Print","",1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14011)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14013)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime()
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime(14)
	ControlSend("Save As","",1152,$sFunctionFolderPath&$TestCaseID)
	Common_SleepTime()
	ControlClick("Save As","","Button2")
	Common_SleepTime(2)
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".PDF", $sFunctionFolderPath &$TestCaseID& "c.PDF")
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		;Common_FileWriteLog_1("PASS", $TestCaseID,$sLogName)
    Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
	    ;Common_FileWriteLog_1("____FAIL", $TestCaseID,$sLogName)
    EndIf
	Common_Close_PM($hPMHandle) 
	WinActivate("PageManager PDF Writer")
	Send("{Enter}")
EndFunc

Func ApplicationBar1_9_5()
	Local $TestCaseID = "1.9.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14009)
	Common_SleepTime()
	ControlClick("Print","",1025)
	Common_SleepTime()
	ControlClick("PageManager PDF Writer Document Properties","",1262)
	Common_SleepTime()
	ControlClick("PageManager PDF Writer Document Properties","",1)
	Common_SleepTime()
	ControlClick("Print","",1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14011)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",14014)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	$hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime()
	MouseClick("right",115,737)
	Common_SleepTime()
	Send("{down}")
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime(14)
	ControlSend("Save As","",1152,$sFunctionFolderPath&$TestCaseID)
	Common_SleepTime()
	ControlClick("Save As","","Button2")
	Common_SleepTime(2)
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".PDF", $sFunctionFolderPath &$TestCaseID& "c.PDF")
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		;Common_FileWriteLog_1("PASS", $TestCaseID,$sLogName)
    Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
	   ; Common_FileWriteLog_1("____FAIL", $TestCaseID,$sLogName)
    EndIf
	Common_Close_PM($hPMHandle) 
	WinActivate("PageManager PDF Writer")
	Send("{Enter}")
EndFunc

Func ApplicationBar1_9_6()
	Local $TestCaseID = "1.9.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PDFWRITER', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4)
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sDisPlayPrintDialogBeforePrinting_CheckBox,"Check", "")
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime(2) 
	_ClickIconOnAppBar('PDFWRITER', 'left')
	Common_SleepTime(6)
   If WinExists($sPrint_Dialog) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrint_Dialog)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If  $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_10_1()
	Local $TestCaseID = "1.10.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Sleep(300)
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_10_2()
	Local $TestCaseID = "1.10.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	 _GUICtrlComboBox_SelectString($hCombo, "Bitmap")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime()
	WinActivate($hPMHandle)
	Common_SleepTime()
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime()
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sOutLookTitle) Then
		$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
		 
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_10_3()
	Local $TestCaseID = "1.10.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	 _GUICtrlComboBox_SelectString($hCombo, "Bitmap")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime()
	WinActivate($hPMHandle)
	Common_SleepTime()
	_GUICtrlListView_SetItemSelected($hListView, 1)
	Common_SleepTime()
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime(8)
    If WinExists($sConvertInformationTitle) Then
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$TestCaseID & '_1.jpg', $sConvertInformationTitle)
		ControlClick($sConvertInformationTitle,"",$sShowLogFileButton)
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$TestCaseID & '_2.jpg', $sLogFileClass)
		Common_SleepTime(2) 
		$CaptureCompareResult1 = Common_CompareFile ($PerformResultPath&$TestCaseID & '_1.jpg', $CorrectResutPath&$TestCaseID & '_1.jpg')   
		$CaptureCompareResult2 = Common_CompareFile ($PerformResultPath&$TestCaseID & '_2.jpg', $CorrectResutPath&$TestCaseID & '_2.jpg') 
		If $CaptureCompareResult1 & $CaptureCompareResult2 Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			Send("!f")	
			Send("x")
			Common_SleepTime()
			Send("{esc}")
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Send("!f")	
			Send("x")
			Common_SleepTime()
			Send("{esc}")
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Send("!f")	
		Send("x")
		Common_SleepTime()
		Send("{esc}")
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_10_4_32()
	For $i=1 To 29
		$n=$i+3
		$j=$i+1
		Local $TestCaseID = "1.10."&$n
		$sCusMsg = ''
		$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
		;judge if need run when reproduce the failed case by result tool
		Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
		If $bReproduceTestCase = False Then
			ContinueLoop   
		EndIf
		Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
		Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
		If $bExecuteTestCase = False Then
			Return 2   
		EndIf 
		Local $sCaptureImage = $TestCaseID & '.jpg'  
		Common_Del_DB()  
		Common_InitializeStatus()   
		InitializeStatusForAppBar()
		Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
		Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
		Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
		Local $posAppBar = GetAppBarPos($hPMHandle)
		_ClickIconOnAppBar('OUTLOOK', 'right')
		Common_SleepTime(2) 
		Send("{down}")
		Common_SleepTime()
		Send("{enter}")
		Common_SleepTime(4) 
		ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
		Common_SleepTime()
		$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
		_GUICtrlComboBox_SetCurSel($hCombo, $i)
		Common_SleepTime()
		ControlClick($sApplicationPropertiesDialogTitle,"",1)
		Common_SleepTime()
		OpenSampleFolder($hPMHandle)
		Common_SleepTime(4)
		WinActivate($hPMHandle)
		Common_SleepTime(4)
		_GUICtrlListView_SetItemSelected($hListView, $j)
		Common_SleepTime(2)
		_ClickIconOnAppBar('OUTLOOK', 'right')
		Send("{down}")
		Common_SleepTime()
		Send("{down}")
		Common_SleepTime()
		Send("{Enter}")
		Common_SleepTime($sConvertTime)
		If WinExists($sOutLookTitle) Then
			$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
			Common_SleepTime(4) 
			Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
			Common_SleepTime(2) 
			$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
			If $CaptureCompareResult Then			
				Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
				ProcessClose("OUTLOOK.exe")
				Common_Close_PM($hPMHandle) 
				Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Else
				Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
				ProcessClose("OUTLOOK.exe")
				Common_Close_PM($hPMHandle) 
				Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			EndIf
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		EndIf
	Next
EndFunc

Func ApplicationBar1_10_33()
	Local $TestCaseID = "1.10.33"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime()
	WinActivate($hPMHandle)
	Common_SleepTime()
	_GUICtrlListView_SetItemSelected($hListView, 1)
	Common_SleepTime()
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sOutLookTitle) Then
		$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
		 
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc


Func ApplicationBar1_10_34()
	Local $TestCaseID = "1.10.34"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime()
	WinActivate($hPMHandle)
	Common_SleepTime()
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime()
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sOutLookTitle) Then
		$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
		 
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_11_1()
	Local $TestCaseID = "1.11.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_11_2()
	Local $TestCaseID = "1.11.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordPadClass) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("wordpad.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("wordpad.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_11_3()
	Local $TestCaseID = "1.11.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 5)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordPadClass) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("wordpad.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("wordpad.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_11_4()
	Local $TestCaseID = "1.11.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 2)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 19)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordPadClass) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("wordpad.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("wordpad.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_11_5()
	Local $TestCaseID = "1.11.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 8)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'left')
	Common_SleepTime(8)
	Send('{ENTER}')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordPadClass) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("wordpad.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("wordpad.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_11_6()
	Local $TestCaseID = "1.11.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 1)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_11_7()
	Local $TestCaseID = "1.11.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 15)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordPadClass) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("wordpad.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("wordpad.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_11_8()
	Local $TestCaseID = "1.11.8"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORDPAD', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_12_1()
	Local $TestCaseID = "1.12.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_12_2()
	Local $TestCaseID = "1.12.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",3002)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPrintFunTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrintFunTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("PrintFun.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_12_3()
	Local $TestCaseID = "1.12.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 6)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 9)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPrintFunTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrintFunTitle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("PrintFun.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_12_4()
	Local $TestCaseID = "1.12.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 10)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 2)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPrintFunTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrintFunTitle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("PrintFun.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_12_5()
	Local $TestCaseID = "1.12.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,11)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPrintFunTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrintFunTitle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("PrintFun.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_12_6()
	Local $TestCaseID = "1.12.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,10)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPrintFunTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPrintFunTitle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("PrintFun.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("PrintFun.exe")		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_12_7()
	Local $TestCaseID = "1.12.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,30)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PRINTFUN', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_13_1()
	Local $TestCaseID = "1.13.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(2) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_13_2()
	Local $TestCaseID = "1.13.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView, 0)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sEZPictureClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sEZPictureClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase) 
		ProcessClose("EZPicture.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_13_3()
	Local $TestCaseID = "1.13.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 4)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,9)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sEZPictureClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sEZPictureClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase)
		ProcessClose("EZPicture.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_13_4()
	Local $TestCaseID = "1.13.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 8)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,2)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sEZPictureClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sEZPictureClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase)
		ProcessClose("EZPicture.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_13_5()
	Local $TestCaseID = "1.13.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,11)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sEZPictureClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sEZPictureClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase)
		ProcessClose("EZPicture.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_13_6()
	Local $TestCaseID = "1.13.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,10)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sEZPictureClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sEZPictureClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("EZPicture.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase)
		ProcessClose("EZPicture.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_13_7()
	Local $TestCaseID = "1.13.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	If $sPMVersion = "SE" Then
		Return 0
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,6)
	Common_SleepTime(2)
	ClickIconOnAppBar($sEZPicture,"right",$posAppBar)
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_14_1()
	Local $TestCaseID = "1.14.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_14_2()
	Local $TestCaseID = "1.14.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSPAINT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sMSPaintClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMSPaintClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("mspaint.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_14_3()
	Local $TestCaseID = "1.14.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,2)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSPAINT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sMSPaintClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMSPaintClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
		ProcessClose("mspaint.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_14_4()
	Local $TestCaseID = "1.14.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,19)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSPAINT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sMSPaintClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMSPaintClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("mspaint.exe")			
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
		ProcessClose("mspaint.exe")	
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_14_5()
	Local $TestCaseID = "1.14.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,05)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSPAINT', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_15_1()
	Local $TestCaseID = "1.15.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_15_2()
	Local $TestCaseID = "1.15.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSIE', 'left')
	Common_SleepTime($sConvertTime)
	Send('{ENTER}')
	Common_SleepTime($sConvertTime)
    If WinExists($sIEClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sIEClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase) 
		ProcessClose("iexplore.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_15_3()
	Local $TestCaseID = "1.15.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,31)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSIE', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sIEClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sIEClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase) 
		ProcessClose("iexplore.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_15_4()
	Local $TestCaseID = "1.15.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,19)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSIE', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sIEClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sIEClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase) 
		ProcessClose("iexplore.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_15_5()
	Local $TestCaseID = "1.15.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,5)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSIE', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sIEClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sIEClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("iexplore.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bExecuteTestCase) 
		ProcessClose("iexplore.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_15_6()
	Local $TestCaseID = "1.15.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,19)
	Common_SleepTime(2)
	_ClickIconOnAppBar('MSIE', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_16_1()
	Local $TestCaseID = "1.16.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_16_2()
	Local $TestCaseID = "1.16.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,32)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sWordClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &  $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_16_3()
	Local $TestCaseID = "1.16.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,33)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sWordClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_16_4()
	Local $TestCaseID = "1.16.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 4)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,09)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sWordClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_16_5()
	Local $TestCaseID = "1.16.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sWordClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_16_6()
	Local $TestCaseID = "1.16.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,08)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sWordClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sWordClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_16_7()
	Local $TestCaseID = "1.16.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,05)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'right')
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf 
EndFunc

Func ApplicationBar1_17_1()
	Local $TestCaseID = "1.17.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime() 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_17_2()
	Local $TestCaseID = "1.17.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,34)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sExcelClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sExcelClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_17_3()
	Local $TestCaseID = "1.17.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,30)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sExcelClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sExcelClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_17_4()
	Local $TestCaseID = "1.17.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 2)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,09)
	Common_SleepTime(2)
	ClickIconOnAppBar($sWord,"left",$posAppBar)
	Common_SleepTime($sConvertTime)
    If WinExists($sExcelClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sExcelClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_17_5()
	Local $TestCaseID = "1.17.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sExcelClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sExcelClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf    
EndFunc

Func ApplicationBar1_17_6()
	Local $TestCaseID = "1.17.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,08)
	Common_SleepTime(2)
	_ClickIconOnAppBar('WORD', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sExcelClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sExcelClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			;QuitWordExcel()	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			;QuitWordExcel()
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		;QuitWordExcel()
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_17_7()
	Local $TestCaseID = "1.17.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(2) 
	Send("{down}")
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,05)
	Common_SleepTime(2)
	ClickIconOnAppBar($sExcel,"right",$posAppBar)
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_18_1()
	Local $TestCaseID = "1.18.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg);judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime(1) 
	Send("{enter}")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sApplicationPropertiesDialogTitle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ApplicationBar1_18_2()
	Local $TestCaseID = "1.18.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,34)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPPTClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPPTClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("POWERPNT.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("POWERPNT.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("POWERPNT.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_18_3()
	Local $TestCaseID = "1.18.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 1)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,30)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPPTClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPPTClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("POWERPNT.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("POWERPNT.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("POWERPNT.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_18_4()
	Local $TestCaseID = "1.18.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 3)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,09)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPPTClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPPTClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("POWERPNT.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("POWERPNT.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("POWERPNT.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_18_5()
	Local $TestCaseID = "1.18.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sAutomaticFormatTransformationRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPPTClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPPTClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("POWERPNT.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("POWERPNT.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("POWERPNT.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_18_6()
	Local $TestCaseID = "1.18.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,11)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sPPTClass) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sPPTClass)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)
			ProcessClose("POWERPNT.exe")	
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
			ProcessClose("POWERPNT.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase) 
		ProcessClose("POWERPNT.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf   
EndFunc

Func ApplicationBar1_18_7()
	Local $TestCaseID = "1.18.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlClick($sApplicationPropertiesDialogTitle,"",$sKeepOriginalFormatRadioButton)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,05)
	Common_SleepTime(2)
	_ClickIconOnAppBar('PPT', 'right')
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_19_1()
	Local $TestCaseID = "1.19.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAcceptMultipleFilesCheckBox,"Check","")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	_GUICtrlListView_SetItemSelected($hListView,5)
	Common_SleepTime(2)
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sOutLookTitle) Then
		$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_19_2()
	Local $TestCaseID = "1.19.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAcceptMultipleFilesCheckBox,"Check","")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,0)
	_GUICtrlListView_SetItemSelected($hListView,1)
	Common_SleepTime(2)
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
	If WinExists($sConvertInformationTitle) Then
		ControlCommand($sConvertInformationTitle,"",1006,"Check", "")
		Common_SleepTime(2)
		ControlClick($sConvertInformationTitle,"",1)
		Common_SleepTime(40)
		If WinExists($sOutLookTitle) Then
			$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
			 
			Common_SleepTime(4) 
			Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
			Common_SleepTime(2) 
			$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
			If $CaptureCompareResult Then			
				Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
				ProcessClose("OUTLOOK.exe")
				Common_Close_PM($hPMHandle) 
				Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
				Return 1   
			Else
				Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
				ProcessClose("OUTLOOK.exe")
				Common_Close_PM($hPMHandle) 
				Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
				Return 0
			EndIf
		Else
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf

EndFunc

Func ApplicationBar1_19_3()
	Local $TestCaseID = "1.19.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAcceptMultipleFilesCheckBox,"UnCheck","")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,5)
	Common_SleepTime(2)
	_ClickIconOnAppBar('OUTLOOK', 'left')
	Common_SleepTime($sConvertTime)
    If WinExists($sOutLookTitle) Then
		$PrHandle=ControlGetHandle($sOutLookTitle,"",4104)
		 
		Common_SleepTime(4) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $PrHandle)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			ProcessClose("OUTLOOK.exe")
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		ProcessClose("OUTLOOK.exe")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_19_4()
	Local $TestCaseID = "1.19.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{enter}")
	Common_SleepTime(4) 
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAcceptMultipleFilesCheckBox,"UnCheck","")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",$sTransformFormatRadioButton)
	Common_SleepTime()
	$hCombo=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sFormatComboBox)
	_GUICtrlComboBox_SetCurSel($hCombo, 0)
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime()
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	_GUICtrlListView_SetItemSelected($hListView,5)
	_GUICtrlListView_SetItemSelected($hListView,24)
	Common_SleepTime(2)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sMenuCtrInfo)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf  
EndFunc

Func ApplicationBar1_20_1()
	Local $TestCaseID = "1.20.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{down}")
	Common_SleepTime()
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then
		OpenApplicationProperties()
		Common_SleepTime(4)
		Local $nIndex = GetApplicationPropertiesListBoxIconIndex($sOutlook)
		$hListBox=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sAppListBox)
		_GUICtrlListBox_ClickItem($hListBox, $nIndex)
		Common_SleepTime(2)
		If ControlCommand($sApplicationPropertiesDialogTitle,"",$sAppearInAppBarCheckBox,"IsChecked","") Then
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		Else
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1
		EndIf
	Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_20_2()
	Local $TestCaseID = "1.20.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime(2) 
	Send("{down}")
	Common_SleepTime()
	Send("{down}")
	Common_SleepTime()
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime(2)
	OpenApplicationProperties()
	Common_SleepTime(4)
	$hListBox=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sAppListBox)
	Local $nIndex = GetApplicationPropertiesListBoxIconIndex($sOutlook)
	_GUICtrlListBox_ClickItem($hListBox, $nIndex)
	Common_SleepTime(2)
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAppearInAppBarCheckBox,"Check", "")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime(5)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
	    Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_20_3()
	Local $TestCaseID = "1.20.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	_ClickIconOnAppBar('OUTLOOK', 'right')
	Common_SleepTime()
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime(2)
	ControlCommand($sApplicationPropertiesDialogTitle,"",$sAppearInAppBarCheckBox,"UnCheck","")
	Common_SleepTime()
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime(5)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_23_14()
	Local $TestCaseID = "1.23.14"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",3000)
	Common_SleepTime(5)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_23_15()
	Local $TestCaseID = "1.23.15"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	$hListBox=ControlGetHandle($sRegisterApplicationWizardTtile,"",3002)
	Common_SleepTime()
	$aItems= _GUICtrlListBox_GetListBoxInfo($hListBox)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRegisterApplicationWizardTtile)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_23_16()
	Local $TestCaseID = "1.23.16"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	$hListBox=ControlGetHandle($sRegisterApplicationWizardTtile,"",3002)
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	Common_SleepTime(2)
	$aItems= _GUICtrlListBox_GetListBoxInfo($hListBox)
	ControlClick($sRegisterApplicationWizardTtile,"",10032)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRegisterApplicationWizardTtile)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_23_17()
	Local $TestCaseID = "1.23.17"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	$hListBox=ControlGetHandle($sRegisterApplicationWizardTtile,"",3002)
	Common_SleepTime()
	$aItems= _GUICtrlListBox_GetListBoxInfo($hListBox)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",3001)
	Common_SleepTime(2)
	$hWnd=ControlGetHandle($sRegisterApplicationWizardTtile,"",2402)
	$Num=_GUICtrlComboBox_GetCount($hWnd)
	Common_SleepTime(2)
    If $aItems=$Num Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_23_18()
	Local $TestCaseID = "1.23.18"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",3001)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",2227)
	Common_SleepTime(5)
	OpenSampleFolder($hPMHandle)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	Common_SleepTime(4)
	Local $hListView=ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	_GUICtrlListView_SetItemSelected($hListView,3)
	Common_SleepTime(2)
	MouseClick("left",840,737)
	Common_SleepTime(50)
	$PrHandle=WinGetHandle("[Class:CabinetWClass]")
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRegisterApplicationWizardTtile)
	Common_SleepTime(2)
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".bmp", $sFunctionFolderPath &$TestCaseID& "c.bmp")
	Common_SleepTime()
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		;Common_FileWriteLog_1("PASS", $TestCaseID,$sLogName)
    Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
	    ;Common_FileWriteLog_1("____FAIL", $TestCaseID,$sLogName)
    EndIf
	WinActivate("[Class:CabinetWClass]")
	Send("!f")
	Send("c")
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
EndFunc

Func ApplicationBar1_23_19()
	Local $TestCaseID = "1.23.19"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlSend($sRegisterApplicationWizardTtile,"",2398,"C:\WINDOWS\explorer.exe")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",3001)
	Common_SleepTime(2)
	ControlCommand($sRegisterApplicationWizardTtile,"",2427,"UnCheck","")
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2227)
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $TBHandle)
	Common_SleepTime(2)
	OpenApplicationProperties()
	Common_SleepTime()
	$hWnd=ControlGetHandle($sApplicationPropertiesDialogTitle,"",$sAppListBox)
	Local $n=_GUICtrlListBox_GetListBoxInfo($hWnd) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Local $a
	If $a+1=$n Then
		If $CaptureCompareResult  And $a+1=$n Then
			Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf 
	Else
	    Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf 
EndFunc

Func ApplicationBar1_23_20()
	Local $TestCaseID = "1.23.20"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2)
	Common_SleepTime(4)
    If WinExists($sRegisterApplicationWizardTtile) Then
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    Else
	    Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
    EndIf
EndFunc

Func ApplicationBar1_23_21()
	Local $TestCaseID = "1.23.21"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Send("!t")
	Send("a")
	Send("r")
	Common_SleepTime(4)
    If WinExists($sRegisterApplicationWizardTtile) Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
    Else
	    Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func ApplicationBar1_24_2()
	Local $TestCaseID = "1.24.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	;judge if need run when reproduce the failed case by result tool
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sAppBarFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sAppBarFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()  
	Common_InitializeStatus()   
	InitializeStatusForAppBar()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $TBHandle = ControlGetHandle($hPMHandle, "", $sApplicationBar)
	Local $posAppBar = GetAppBarPos($hPMHandle)
	MouseClick("left",$posAppBar[0]+40,$posAppBar[1]+$posAppBar[3]*0.7)
	Common_SleepTime(5)
	$Path=PrestopmEXE_Path()
	Common_SleepTime()
	ControlSetText($sRegisterApplicationWizardTtile,"",2398,$Path)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",2226)
	Common_SleepTime(2)
	ControlClick($sRegisterApplicationWizardTtile,"",10031)
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",3001)
	Common_SleepTime()
	ControlClick($sRegisterApplicationWizardTtile,"",2227)
	Common_SleepTime()
	MouseClick("right",835,737)
	Send("{down}")
	Send("{Enter}")
	Common_SleepTime(2)
	ControlClick($sApplicationPropertiesDialogTitle,"",2295)
	Common_SleepTime(2)
	ControlClick("Presto! PageManager","",6)
	Common_SleepTime(2)
	ControlClick($sApplicationPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sFunctionFolderPath,$TestCaseID& ".bmp", $TBHandle)
	Common_SleepTime()
	$Return_of_CompareFile_1 = Common_CompareFile($sFunctionFolderPath&$TestCaseID& ".bmp", $sFunctionFolderPath &$TestCaseID& "c.bmp")
    If $Return_of_CompareFile_1 Then
		Common_WriteLog($sPass, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
		;Common_FileWriteLog_1("PASS", $TestCaseID,$sLogName)
    Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sAppBarFunctionName,$bReproduceTestCase)  
	    ;Common_FileWriteLog_1("____FAIL", $TestCaseID,$sLogName)
    EndIf
	Common_Close_PM($hPMHandle) 
EndFunc
